<!DOCTYPE html>
<html lang="en">
<head>
    <title>参数设置管理</title>
    <#include "/header.html">
</head>
<body>

<div id="rrapp" v-cloak>
    <div v-show="showList">
        <div class="grid-btn">
            <!--<div class="form-group col-sm-2">
                <input type="text" class="form-control" v-model="q.code" @keyup.enter="query" placeholder="参数编码">
            </div>
            <a class="btn btn-default" @click="query">查询</a>-->
            <!--<a class="btn btn-primary" @click="add"><i class="fa fa-plus"></i>&nbsp;新增</a>-->
            <!--<a class="btn btn-primary" @click="del"><i class="fa fa-trash-o"></i>&nbsp;删除</a>-->
            <a class="btn btn-primary" @click="update"><i class="fa fa-pencil-square-o"></i>&nbsp;修改</a>
           <!-- <a class="btn btn-primary" @click="info"><i class="fa fa-trash-o"></i>&nbsp;查看详情</a>-->
            </div>
            <table id="jqGrid"></table>
            <div id="jqGridPager"></div>
    </div>

    <div v-show="!showList" class="panel panel-default">
        <div class="panel-heading">{{title}}</div>
        <form class="form-horizontal">
            <div class="form-group">
                <div class="col-sm-2 control-label">参数名称</div>
                <div class="col-sm-10">
                    <input type="text" class="form-control" v-model="config.configName" placeholder="参数名称" v-if="configAdd" />
                    <input type="text" class="form-control" v-model="config.configName" placeholder="参数名称" v-else readonly/>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label">参数编码</div>
                <div class="col-sm-10">
                    <input type="text" class="form-control" v-model="config.configCode" placeholder="参数编码" v-if="configAdd" />
                    <input type="text" class="form-control" v-model="config.configCode" placeholder="参数编码" v-else readonly/>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label">参数值</div>
                <div class="col-sm-10">
                    <input type="text" v-if="isOpen" class="form-control" v-model="config.configValue" placeholder="参数值"/>
                    <select class="form-control" v-else v-model="config.configValue">
                        <option value="N">关闭</option>
                        <option value="Y">开启</option>
                    </select>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label"></div>
                <input type="button" class="btn btn-primary" @click="saveOrUpdate" value="确定"/>
                &nbsp;&nbsp;<input type="button" class="btn btn-warning" @click="reload" value="返回"/>
            </div>
        </form>
    </div>
</div>



<script src="/accounts/script/config.js?_${.now?long}"></script>

</body>
</html>